#
#
CLEANFILES = *~
DISTCLEANFILES = *~

clx_includedir = @prefix@/include/clx

INCLUDES = -I../../lib/libbase -I../../lib/libsr -I../../lib/libebc

noinst_LTLIBRARIES = libedb.la
libedb_la_SOURCES = edb_type.c edb.c edb_dbg.c pathmon.c fileup.c \
		edb_file.c edb_file.h \
		edb_p.h edb.h edb_proto.h

clx_include_HEADERS = libedb.h edb_type.h

libedb.a: $(libedb_a_OBJECTS) $(libedb_a_DEPENDENCIES) symbols.txt
	-rm -f libedb.a
	ld -r -o libedb.o $(libedb_a_OBJECTS)
	objcopy --keep-global-symbols symbols.txt libedb.o libedb_.o
	objcopy --discard-all libedb_.o
	$(libedb_a_AR) libedb.a libedb_.o $(libedb_a_LIBADD)
	-rm -f libedb_.o
	$(RANLIB) libedb.a
